@echo off
chcp 65001 >nul
echo 测试启动后端服务...
echo.

cd backend
echo 当前目录: %cd%
echo.

echo 测试Python导入...
python -c "import main; print('导入成功')"
if errorlevel 1 (
    echo 导入失败
    pause
    exit /b 1
)

echo.
echo 启动服务器...
python -m uvicorn main:app --host 0.0.0.0 --port 8000
pause
